/*
 * @Description:
 * @Autor: Chen
 * @Date: 2020-01-21 14:29:03
 * @LastEditors: chen
 * @LastEditTime: 2020-03-11 11:54:06
 */
import {
  HTTP_INTERCEPTORS,
  provideHttpClient,
  withInterceptorsFromDi,
} from '@angular/common/http';
import { AuthInterceptor } from './auth-interceptor';

/** Http interceptor providers in outside-in order */
export const httpInterceptorProviders = [
  provideHttpClient(withInterceptorsFromDi()),
  { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
];
